﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using SilverlightInEnterprise.Caching.ServiceContract.DTO;

namespace SilverlightInEnterprise.Caching.Web
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "SalesService" in code, svc and config file together.
    public class SalesService : ISalesService
    {
        private SalesOrderItem[] salesOrderItems = new SalesOrderItem[]
                                                       {
                                                           new SalesOrderItem(){Id=1,ProductId = 3,Units = 20},
                                                           new SalesOrderItem(){Id=2,ProductId = 1,Units = 2},
                                                           new SalesOrderItem(){Id=3,ProductId = 4,Units = 50}, 
                                                       };

        public IEnumerable<SalesOrderItem> GetSalesOrderItems(int salesId)
        {
            return this.salesOrderItems;
        }
    }
}
